package com.qianfeng.exam.pojo;


import com.github.pagehelper.util.StringUtil;

public class Books {

  private Long bookid;
  private String bookName;
  private Long categoryId;
  private Long bookstatus;
  private Long authorId;
  private Double booktotalstars;
  private Long booktotalstartimes;
  private Double bookaveragestar;
  private String bookDescription;
  private java.util.Date shelftime;
  private Long readernum;
  private Long favnum;
  private Long clicksnum;
  private Long datastatus;
  private String bookPicUrl;
  private Categories category;
  private Authors author;


  public Categories getCategory() {
    return category;
  }

  public void setCategory(Categories category) {
    this.category = category;
  }

  public Authors getAuthor() {
    return author;
  }

  public void setAuthor(Authors author) {
    this.author = author;
  }

  public boolean isNoll() {
    return StringUtil.isEmpty(bookName)||authorId==null||categoryId==null;
  }

  public Long getBookid() {
    return bookid;
  }

  public void setBookid(Long bookid) {
    this.bookid = bookid;
  }

  public String getBookName() {
    return bookName;
  }

  public void setBookName(String bookName) {
    this.bookName = bookName;
  }

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public Long getBookstatus() {
    return bookstatus;
  }

  public void setBookstatus(Long bookstatus) {
    this.bookstatus = bookstatus;
  }

  public Long getAuthorId() {
    return authorId;
  }

  public void setAuthorId(Long authorId) {
    this.authorId = authorId;
  }

  public Double getBooktotalstars() {
    return booktotalstars;
  }

  public void setBooktotalstars(Double booktotalstars) {
    this.booktotalstars = booktotalstars;
  }

  public Long getBooktotalstartimes() {
    return booktotalstartimes;
  }

  public void setBooktotalstartimes(Long booktotalstartimes) {
    this.booktotalstartimes = booktotalstartimes;
  }

  public Double getBookaveragestar() {
    return bookaveragestar;
  }

  public void setBookaveragestar(Double bookaveragestar) {
    this.bookaveragestar = bookaveragestar;
  }

  public String getBookDescription() {
    return bookDescription;
  }

  public void setBookDescription(String bookDescription) {
    this.bookDescription = bookDescription;
  }

  public java.util.Date getShelftime() {
    return shelftime;
  }

  public void setShelftime(java.util.Date shelftime) {
    this.shelftime = shelftime;
  }


  public Long getReadernum() {
    return readernum;
  }

  public void setReadernum(Long readernum) {
    this.readernum = readernum;
  }


  public Long getFavnum() {
    return favnum;
  }

  public void setFavnum(Long favnum) {
    this.favnum = favnum;
  }


  public Long getClicksnum() {
    return clicksnum;
  }

  public void setClicksnum(Long clicksnum) {
    this.clicksnum = clicksnum;
  }


  public Long getDatastatus() {
    return datastatus;
  }

  public void setDatastatus(Long datastatus) {
    this.datastatus = datastatus;
  }

  public String getBookPicUrl() {
    return bookPicUrl;
  }

  public void setBookPicUrl(String bookPicUrl) {
    this.bookPicUrl = bookPicUrl;
  }

  @Override
  public String toString() {
    return "Books{" +
            "bookid=" + bookid +
            ", bookName='" + bookName + '\'' +
            ", categoryId=" + categoryId +
            ", bookstatus=" + bookstatus +
            ", authorId=" + authorId +
            ", booktotalstars=" + booktotalstars +
            ", booktotalstartimes=" + booktotalstartimes +
            ", bookaveragestar=" + bookaveragestar +
            ", bookDescription='" + bookDescription + '\'' +
            ", shelftime=" + shelftime +
            ", readernum=" + readernum +
            ", favnum=" + favnum +
            ", clicksnum=" + clicksnum +
            ", datastatus=" + datastatus +
            ", bookPicUrl='" + bookPicUrl + '\'' +
            ", category=" + category +
            ", author=" + author +
            '}';
  }
}
